/*
 * Application.h
 *
 *  Created on: 17 Oca 2012
 *      Author: root
 */

#ifndef APPLICATION_H_
#define APPLICATION_H_

#include "sealed.h"
#include "messaging/message.h"
#include "messaging/messaging_abstract.h"
#include "activity.h"

namespace androidplus {

class application:private virtual sealed {

private:
	application();
	virtual ~application();
	static application *singleton;

public:
	static application  * const cur_app();
	activity * cur_activity();
    void init(activity *act);

private:
    messaging::messaging_abstract * current_messaging;
    activity * current_activity;


};

} /* namespace androidplus */







#endif /* APPLICATION_H_ */
